﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace PictureManager.Controllers
{
    public class ContentController : Controller
    {
        Models.PictrueManagerEntities context = new Models.PictrueManagerEntities();

        public ActionResult Index(int 栏目ID)
        {
            List<Models.图片组> lst图片组 = context.图片组.Where(c => c.栏目ID == 栏目ID).OrderBy(c => c.拍摄时间).ToList();
            ViewBag.图片组 = lst图片组;
            return View();
        }
    }
}
